﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WPS.SDK.exception
{
    public class YunException : Exception
    {
        public YunException()
            : base("YunException")
        {
        }
        public YunException(string message)
            : base(message)
        {
        }

        public YunException(Exception e)
            : base(e.Message)
        {
        }

        public YunException(string message, Exception e)
             : base(message, e)
        {
        }

        public virtual int getCode()
        {
            return 0;
        }

        public virtual String getResult()
        {
            return null;
        }

        public virtual bool needRetry()
        {
            return false;
        }

        public virtual bool isSocketTimeoutException()
        {
            return false;
        }

        public virtual bool isConnectTimeoutException()
        {
            return false;
        }

        public virtual bool isSocketException()
        {
            return false;
        }

        public virtual bool isConnectException()
        {
            return false;
        }

        public virtual bool isCancelException()
        {
            return false;
        }

    }
}
